package cn.melon.view.admin.library.ctr;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import org.apache.log4j.Logger;

import cn.melon.helper.LoggerHelper;
import cn.melon.view.admin.library.AddBookDig;
import cn.melon.view.admin.library.LibraryJPanel;

public class LibraryPanelCtr implements ActionListener {

    private Logger LibraryPanelCtrLog = LoggerHelper.clientLogger();
    
    private LibraryJPanel panel = null;
    
    public LibraryPanelCtr(LibraryJPanel panel) {
        this.panel = panel;
    }
    
    
    @Override
    public void actionPerformed(ActionEvent e) {
        LibraryPanelCtrLog.info(e.getActionCommand());
        switch (e.getActionCommand()) {
        case "查询":
            
            break;
        case "书籍入库":
            AddBookDig dig = new AddBookDig();
            dig.setVisible(true);
            break;
        default:
            break;
        }
    }

}
